#ifndef DFMWIDGET_H
#define DFMWIDGET_H

#include <QtWidgets/QWidget>
#include "ui_dfmwidget.h"
#include "GPS_DFM_util.h"

class DFMWidget : public QWidget
{
	Q_OBJECT

public:
	DFMWidget(QWidget *parent = 0);
	~DFMWidget();

	void setGPSTextType(GPSLocationTextType type);
	GPSLocationTextType getGPSTextType() const;

	void setLon(double value);
	double getLon();

	void setLat(double value);
	double getLat();

	QPointF getLngLat() const;

signals:
	void LocationDataChanged(QPointF value);

private slots:
	void onLineEditingFinished();

private:
	Ui::DFMWidgetClass ui;
	GPSLocationTextType currentTextType;
	double current_lon;
	double current_lat;
};

#endif // DFMWIDGET_H
